package com.example.servicebase.client;

import com.example.commonutils.ResultData;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class VodClientFallbackFactory implements FallbackFactory<VodClient> {
    @Override
    public VodClient create(Throwable throwable) {
        return new VodClient() {
            @Override
            public ResultData removeVideo(String id) {
                return ResultData.error();
            }

            @Override
            public String getPlayAuth(String id) {
                return null;
            }
        };
    }
}
